shared-domain-ux
TMF 632 - Retrieve Organizations By ID
This operation retrieves a Organization entity. Attribute selection is enabled for all first level attributes.
URL
https://[localhost]:[port]/shared-domain-ux/tmf-api/partyManagement/v1/{businessId}/organization/{id}url Param
| name | type | description | required |
|---|---|---|---|
| businessId | string | 2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit. | Y |
| id | string | organization by id | Y |
Header
| name | type | description | required |
|---|---|---|---|
| client_id | string | The client_id identifying the channel. Minimum characters: 5 | Y |
| client_secret | string | Password associated with the client_id. Minimum characters: 5 | Y |
| X-Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. | Y |
Query Param
| name | type | description | required |
|---|---|---|---|
| organizationType | string | Type of organization (example - Multiline) | N |
| fields | string | Comma-separated properties to provide in response | N |
Request to retrieve organizations by id:
Query with ID
curl --location 'https://nonprod.{bgid}.esb.cloud.lla.com/test/shared-domain-ux-{bgid}/tmf-api/partyManagement/v1/{businessId}/organization/{id}' \
--header 'client_id: xxxxxxxxx' \
--header 'client_secret: xxxxxxxxxxx' \
--header 'X-Correlation-ID: {{$guid}}'Response
{
"id": "744341234",
"name": "744341234-MAG",
"organizationType": "B2C",
"status": "Active",
"existsDuring": {
"startDateTime": "1967-09-26T00:00:00.246Z",
"endDateTime": ""
},
"partyCharacteristic": [
{
"name": "Group Details",
"valueType": "object",
"value": {
"adminCount": "",
"deviceCount": "0",
"groupMembers": "0",
"lastActivityTime": "0",
"maxSubscriber": "0",
"maxUserCount": "0",
"SubscriberCount": "0",
"SubscriberMemberCount": "0",
"UserCount": "0",
}
}
],
"contactMedium": [
{
"mediumType": "NotifyMembers"
}
],
"relatedParty": [
{
"id": "0-1-5-36995",
"role": "Owner",
"@type": "ObjectId"
},
{
"id": "0-1-5-36989",
"role": "Member",
"@type": "ObjectId"
},
{
"id": "0-1-5-37031",
"role": "Member",
"@type": "ObjectId"
}
]
}Definitions
Each of the response parameters is detailed.
| name | type | description |
|---|---|---|
| id | string | Unique identifier of the individual. |
| href | string | Hyperlink to access the individual. |
| aristocraticTitle | string | Aristocratic title such as Baron, Graf, Earl. |
| birthDate | datetime | Birth date of the individual. |
| countryOfBirth | string | Country where the individual was born. |
| deathDate | datetime | Date of death of the individual. |
| familyName | string | Non-chosen or inherited family name (last name). |
| familyNamePrefix | string | Family name prefix. |
| formattedName | string | Fully formatted name with all necessary punctuation and language-specific formatting. |
| fullName | string | Full name including first, middle, and last names. |
| gender | string | Gender of the individual. |
| generation | string | Generation suffix such as Sr, Jr, III. |
| givenName | string | First name of the individual. |
| legalName | string | Legal or birth name used for official purposes. |
| location | string | Temporary current location of the individual. |
| maritalStatus | string | Marital status of the individual. |
| middleName | string | Middle name or initial. |
| nationality | string | Nationality of the individual. |
| placeOfBirth | string | Place where the individual was born. |
| preferredGivenName | string | Preferred name or nickname used by the individual. |
| description | string | Honorific or title such as Dr, Sir, Prof. |
| contactMedium[].mediumType | string | Type of contact medium such as email, telephone, or postal address. |
| contactMedium[].preferred | boolean | Indicates whether this is the preferred contact medium. |
| contactMedium[].characteristic.city | string | City associated with the contact medium. |
| contactMedium[].characteristic.contactType | string | Contact type such as mobile, home, office, or shipping. |
| contactMedium[].characteristic.country | string | Country associated with the contact medium. |
| contactMedium[].characteristic.emailAddress | string | Email address. |
| contactMedium[].characteristic.faxNumber | string | Fax number. |
| contactMedium[].characteristic.phoneNumber | string | Primary phone number. |
| contactMedium[].characteristic.postCode | string | Postal code. |
| contactMedium[].characteristic.socialNetworkId | string | Social network identifier. |
| contactMedium[].characteristic.stateOrProvince | string | State or province. |
| contactMedium[].characteristic.street1 | string | Primary street address. |
| contactMedium[].characteristic.street2 | string | Secondary street address details. |
| contactMedium[].validFor.startDateTime | datetime | Start date of the contact medium validity period. |
| contactMedium[].validFor.endDateTime | datetime | End date of the contact medium validity period. |
| creditRating[].creditAgencyName | string | Name of the agency providing the credit rating. |
| creditRating[].creditAgencyType | string | Type of credit agency. |
| creditRating[].ratingReference | string | Reference corresponding to the credit rating. |
| creditRating[].ratingScore | integer | Creditworthiness score assigned to the individual. |
| creditRating[].validFor.startDateTime | datetime | Credit rating validity start date. |
| creditRating[].validFor.endDateTime | datetime | Credit rating validity end date. |
| disability[].disabilityCode | string | Disability code. |
| disability[].disabilityName | string | Disability name. |
| disability[].validFor.startDateTime | datetime | Disability validity start date. |
| disability[].validFor.endDateTime | datetime | Disability validity end date. |
| externalReference[].externalReferenceType | string | Type of external reference. |
| externalReference[].name | string | Name of the external reference. |
| individualIdentification[].identificationId | string | Identification number. |
| individualIdentification[].identificationType | string | Identification type such as passport, national ID, driver's license, or SSN. |
| individualIdentification[].issuingAuthority | string | Authority that issued the identification. |
| individualIdentification[].issuingDate | datetime | Date the identification was issued. |
| individualIdentification[].attachment.id | string | Unique attachment identifier. |
| individualIdentification[].attachment.href | string | URI reference for the attachment. |
| individualIdentification[].attachment.attachmentType | string | Attachment type such as document, image, or video. |
| individualIdentification[].attachment.content | string | Base64 encoded content of the attachment. |
| individualIdentification[].attachment.description | string | Description of the attachment. |
| individualIdentification[].attachment.mimeType | string | MIME type of the attachment. |
| individualIdentification[].attachment.name | string | Name of the attachment. |
| individualIdentification[].attachment.url | string | URL of the attachment. |
| individualIdentification[].attachment.size | string | Size of the attachment. |
| individualIdentification[].attachment.validFor.startDateTime | datetime | Attachment validity start date. |
| individualIdentification[].attachment.validFor.endDateTime | datetime | Attachment validity end date. |
| languageAbility[].isFavouriteLanguage | boolean | Indicates whether this is the individual's preferred language. |
| languageAbility[].languageCode | string | Language code based on RFC 5646. |
| languageAbility[].languageName | string | Language name. |
| languageAbility[].listeningProficiency | string | Listening proficiency level. |
| languageAbility[].readingProficiency | string | Reading proficiency level. |
| languageAbility[].speakingProficiency | string | Speaking proficiency level. |
| languageAbility[].writingProficiency | string | Writing proficiency level. |
| languageAbility[].validFor.startDateTime | datetime | Language validity start date. |
| languageAbility[].validFor.endDateTime | datetime | Language validity end date. |
| otherName[].aristocraticTitle | string | Alternate aristocratic title. |
| otherName[].familyName | string | Alternate family name. |
| otherName[].familyNamePrefix | string | Alternate family name prefix. |
| otherName[].formattedName | string | Formatted alternate name. |
| otherName[].fullName | string | Alternate full name. |
| otherName[].generation | string | Alternate generation suffix. |
| otherName[].givenName | string | Alternate given name. |
| otherName[].legalName | string | Alternate legal name. |
| otherName[].middleName | string | Alternate middle name. |
| otherName[].preferredGivenName | string | Alternate preferred or chosen name. |
| otherName[].title | string | Alternate title such as Dr, Sir, or Prof. |
| otherName[].validFor.startDateTime | datetime | Alternate name validity start date. |
| otherName[].validFor.endDateTime | datetime | Alternate name validity end date. |
| partyCharacteristic[].name | string | Name of the characteristic. |
| partyCharacteristic[].valueType | string | Data type of the characteristic value. |
| partyCharacteristic[].value | any | Value of the characteristic. |
| relatedParty[].'@referredType' | string | Type of the referenced entity. |
| relatedParty[].id | string | Unique identifier of the related party. |
| relatedParty[].href | string | Reference URI of the related party. |
| relatedParty[].name | string | Name of the related party. |
| relatedParty[].role | string | Role played by the related party. |
| skill[].comment | string | Comment associated with the skill evaluation. |
| skill[].evaluatedLevel | string | Evaluated skill proficiency level. |
| skill[].skillCode | string | Skill code. |
| skill[].skillName | string | Name of the skill. |
| skill[].validFor.startDateTime | datetime | Skill validity start date. |
| skill[].validFor.endDateTime | datetime | Skill validity end date. |
| status | string | Status of the individual. Allowed values: initialized, validated, deceased. |
| taxExemptionCertificate[].id | string | Unique identifier of the tax exemption certificate. |
| taxExemptionCertificate[].attachment.id | string | Unique attachment identifier. |
| taxExemptionCertificate[].attachment.href | string | URI reference to the attachment. |
| taxExemptionCertificate[].attachment.attachmentType | string | Type of attachment such as document, image, or video. |
| taxExemptionCertificate[].attachment.content | string | Base64 encoded attachment content. |
| taxExemptionCertificate[].attachment.description | string | Description of the attachment. |
| taxExemptionCertificate[].attachment.mimeType | string | MIME type of the attachment. |
| taxExemptionCertificate[].attachment.name | string | Name of the attachment. |
| taxExemptionCertificate[].attachment.url | string | URL of the attachment. |
| taxExemptionCertificate[].attachment.size.amount | number | Numeric size value of the attachment. |
| taxExemptionCertificate[].attachment.size.units | string | Unit of measurement for attachment size. |
| taxExemptionCertificate[].attachment.validFor.startDateTime | datetime | Attachment validity start date. |
| taxExemptionCertificate[].attachment.validFor.endDateTime | datetime | Attachment validity end date. |
| @baseType | string | Defines the superclass when sub-classing. |
| @schemaLocation | string | URI of the JSON schema defining additional attributes and relationships. |
| @type | string | Defines the subclass entity name. |
Possible response error
In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.
[ 400 ]
Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
{
"errors" : [{
"code" : 400,
"message" : "The request is invalid or not properly formed.",
"description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
}]
}[ 401 ]
Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.
{
"errors" : [{
"code" : 401,
"message" : "The user could not be authenticated for this request.",
"description" : "The request has not been applied because it lacks valid authentication credentials for the target resource."
}]
}[ 404 ]
Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
{
"errors" : [{
"code" : 404,
"message" : "The server could not find the requested resource.",
"description" : "The requested operation failed because a resource associated with the request could not be found."
}]
}[ 405 ]
Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
{
"errors": [{
"code": 405,
"message": "APIKIT:METHOD_NOT_ALLOWED",
"description": "HTTP Method PATCH not allowed for : /{businessId}/organization/{id}"
}]
}[ 500 ]
Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.
{
"errors" : [{
"code" : 500,
"message" : "Internal Server Error",
"description": "The request failed due to an internal error."
}]
}[ 501 ]
Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.
{
"errors" : [{
"code" : 501,
"message" : "Not implemented",
"description" : "Operation GET /{businessId}/organization/{id} for Business Id: xxxx not implemented"
}]
}#####